/*******************************************************************************
 * @project: Java_Genericit
 * @package: com.burns.java.generic
 * @file: Test5.java
 * @author: Administrator
 * @created: 2017年5月16日
 * @purpose:
 * 
 * @version: 1.0
 * 
 * Revision History at the end of file.
 * 
 * Copyright 2017 AcconSys All rights reserved.
 ******************************************************************************/

package com.burns.java.generic;

public class Test5 {
	public static void main(String[] args) {

		Box<Integer> a = new Box<Integer>(712);
//		Box<Number> b = a; // 1
		Box<Float> f = new Box<Float>(3.14f);
//		b.setData(f); // 2

	}

	public static void getData(Box<Number> data) {
		System.out.println("data :" + data.getData());
	}

}



/*******************************************************************************
 * <B>Revision History</B><BR>
 * [type 'revision' and press Alt + / to insert revision block]<BR>
 * 
 * 
 * 
 * Copyright 2017 AcconSys All rights reserved.
 ******************************************************************************/